package com.fhzn.boss.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author 老顾
 * @apiNote
 * @since 2024/3/25
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("label")
public class Label extends BaseEntity {

    @TableId
    private Integer id;

    private Integer parentId;

    private Integer type;

    private String code;

    private String name;

    private String appCode;

    private String comment;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private LabelExtension extension;

    private Boolean ifDeleted;
}
